/**
 * 
 */
package com.flashdeck;

import com.flashdeck.activity.SelectDeckActivity;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;

/**
 * @author Vincentas
 *
 */
public class StartupActivity extends Activity {

	/* (non-Javadoc)
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		ProgressDialog.show(this, "Title", "Loading. Please wait...", true, true , new DialogInterface.OnCancelListener() {
						
			@Override
			public void onCancel(DialogInterface dialog) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(StartupActivity.this, SelectDeckActivity.class);
				startActivity(intent);
				
			}
		});
	}
}
